-- GENERATED SPELL FOR [Razormane Mystic] --


function spell0_3271(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(547,pUnit)
pUnit:RegisterEvent('Sorts_3271', 2500, 1)
end

function spell1_3271(pUnit, Event) --@Lightning Shield,Self--
pUnit:FullCastSpellOnTarget(324,pUnit)
pUnit:RegisterEvent('Sorts_3271', 544, 1)
end

function Sorts_3271(pUnit, Event)
local choix_sorts_3271 = math.random(0, 1)
if choix_sorts_3271 == 0 then
pUnit:RegisterEvent('spell0_3271', 1, 1)
end
if choix_sorts_3271 == 1 then
pUnit:RegisterEvent('spell1_3271', 1, 1)
end
end

function mob3271_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3271', math.random(1500, 3000), 1)
end

function mob3271_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3271_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3271_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3271, 1, 'mob3271_Action')
RegisterUnitEvent(3271, 2, 'mob3271_Leave')
RegisterUnitEvent(3271, 3, 'mob3271_Kill')
RegisterUnitEvent(3271, 4, 'mob3271_Die')
